package Snake;

public class Cell {

	private int x;
	private int y;

	public Cell(int x, int y) {
		this.x = x;
		this.y = y;
	}

	public  int getX() {
		return x;
	}

	public  int getY() {
		return y;
	}

	
	public boolean isCell(){
		if(isFood() || isJump() || isBarrier())
			return false;
		return true;
	}
	
	public boolean isFood(){
		return false;
	}
	
	public boolean isBarrier(){
		return false;
	}
	
	public boolean isJump(){
		return false;
	}	
	
//	public boolean isValidToMove(Cell cell){// se for uma snake?????---  AQII
	public synchronized boolean isValidToMove(){
		return true;
	}
	
	
	@Override
	public String toString() {
		return "Cell [x=" + x + ", y=" + y + "]";
	}

}